<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="java.sql.*"%>
<%@ page import="vo.Information"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>My JSP 'info_update_submit.jsp' starting page</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<link rel="stylesheet" type="text/css" href="css/part.css">

<link rel="stylesheet"
	href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://cdn.bootcss.com/jquery/2.1.1/jquery.min.js"></script>
<script
	src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>

<style>
body {
	background-image: url("images/index-bg-03.jpg");
	background-size: cover;
}
</style>
</head>

<body>
	<div id="p1">
		<div id="p2">修改名片</div>

		<%
			request.setCharacterEncoding("UTF-8");

			ArrayList l = (ArrayList) request.getAttribute("update_one_rs");
		%>
		<form action="UpdateOne" method="get">

			<%
				for (int i = 0; i < l.size(); i++) {
					Information s = (Information) l.get(i);

					int info_id2 = s.getInfo_id();
					String info_name = s.getInfo_name();
					String info_phone = s.getInfo_phone();
					String info_address = s.getInfo_address();
					String info_introduction = s.getInfo_introduction();
			%>

			<table class="table table-hover table-bordered">

				<tr>

					<td>姓名</td>
					<td><input class="form-control" type="text" name="info_name"
						name="info_name" value=<%=info_name%>>
					</td>
				</tr>
				<tr>
					<td>电话</td>
					<td><input class="form-control" name="info_phone"
						value=<%=info_phone%>>
					</td>
				<tr>
				<tr>
					<td>地址</td>
					<td><input class="form-control" name="info_address"
						value=<%=info_address%>>
					</td>
				</tr>
				<tr>
					<td>简介</td>
					<td><input class="form-control" name="info_introduction"
						value=<%=info_introduction%>>
					</td>
				</tr>
				<tr>
					<td><input type="hidden" name="info_id2" value=<%=info_id2%>>
						<button id="p7" class="btn btn-info" type="submit"
							class="btn btn-success">提交</button></td>
					<td><button id="p8" class="btn btn-info" type="reset"
							class="btn btn-danger">取消</button></td>

				</tr>
			</table>

			<%
				}
			%>

		</form>


	</div>
</body>
</html>
